/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package bpmlab.kivulifx.entity;

import javafx.beans.property.SimpleDoubleProperty;

/**
 *
 * @author Dedo
 */
public class RectangleModel extends ShapeModel {

    private static final double DEFAULT_WIDTH = 40;
    private static final double DEFAULT_HEIGHT = 40;
    private SimpleDoubleProperty height = new SimpleDoubleProperty(DEFAULT_HEIGHT);
    private SimpleDoubleProperty width = new SimpleDoubleProperty(DEFAULT_WIDTH);

    public RectangleModel() {
    }

    public RectangleModel(double height, double width) {
        this.height.set(width);
        this.width.set(width);
    }

    public double getHeight() {
        return height.get();
    }

    public void setHeight(double height) {
        this.height.set(height);
    }

    public double getWidth() {
        return width.get();
    }

    public void setWidth(double width) {
        this.width.set(width);
    }

    public SimpleDoubleProperty heightProperty() {
        return height;
    }

    public SimpleDoubleProperty widthProperty() {
        return width;
    }

}
